<ul class="products">
	<?php if (isset($products)) 
	  { 
		if ($products != "") 
		{ foreach($products as $p){ ?>
	<li>
		<h3><?php echo $p['name']; ?></h3>
		<img width="120" height="66" src="<?php echo WEB_URL; ?>admin/files/<?php echo $p['image']; ?>" alt="" />
		<small>Rs.<?php echo $p['price']; ?></small>	
		<form action="<?php echo WEB_URL; ?>index.php/cart/add_cart_item" method="post">
			<fieldset>
				<label>Quantity</label>
				<?php echo form_input('quantity', '1', 'maxlength="2"'); ?>
				<?php echo form_hidden('product_id', $p['id']); ?>
				<input type="submit" value="Add" name="add">
			</fieldset>
		</form>
	</li>
	<?php }}} ?>
</ul>
